﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleRest.Serialization.Attributes.Annotations
{
    [AttributeUsage(AttributeTargets.Property)]
    public class WhiteSpaceAttribute : System.ComponentModel.DataAnnotations.ValidationAttribute
    {
        public readonly WhiteSpaceType WhiteSpaceType;

        public WhiteSpaceAttribute(WhiteSpaceType type)
        {
            this.WhiteSpaceType = type;
        }

        public override bool IsValid(object value)
        {
            throw new NotImplementedException();
        }
    }

    public enum WhiteSpaceType
    {
        Preserve,
        Replace,
        Collapse
    }
}
